package com.net.xpay.common.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.net.xpay.common.enums.partner.PartnerLevel;
import com.net.xpay.common.enums.user.ClientFrom;
import com.net.xpay.common.enums.user.CommissionMode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author  on 28/01/2018.
 */
@Getter
@Setter
public class PartnerRegisterModel {

    @ApiModelProperty(required=true, notes = "手机号", example = "18812345678")
    private String mobile;

    @ApiModelProperty(required=true, notes = "手机验证码", example = "888888")
    private String checkCode;

    @ApiModelProperty(required=true, notes = "密码", example = "123456")
    private String password;

    @ApiModelProperty(required=true, notes = "重复密码", example = "123456")
    private String repeatPassword;

    @ApiModelProperty(required=true, notes = "同意协议", example = "true")
    private Boolean acceptProtocol;

    @ApiModelProperty(required=true, notes = "客户端类型", example = "pc_web")
    private ClientFrom clientFrom;

    /**
     * 实名信息
     */
    @ApiModelProperty(notes = "姓名")
    private String name;

    @ApiModelProperty(notes = "备注")
    private String remark;

    @ApiModelProperty(notes = "支付宝实名")
    private String alipayName;

    @ApiModelProperty(notes = "提现支付宝账号")
    private String alipayAccount;

    @ApiModelProperty(notes = "级别 1.一级 2.二级")
    private PartnerLevel level;

    /**
     * 上级信息
     */
    @ApiModelProperty(notes = "父级合伙人id")
    private Long fatherPartnerId;

    @ApiModelProperty(notes = "分佣模式")
    private CommissionMode commissionMode;

    /**
     * 以下为controller填入的字段
     */
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @ApiModelProperty(notes = "ip", example = "1")
    private String ip;
}
